<?php
class CmsSection extends AppModel {
	var $useDbConfig = "default";
	
	var $name = 'CmsSection';
	var $displayField = 'name';
	var $actsAs = array( 'Translate'=>array('body')); 
	
	// Use a different model
	var $translateModel = 'CmsI18n';
    // Use a different table for translateModel
    var $translateTable = 'cms_i18ns';

	var $validate = array(
		'cms_id' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Cm' => array(
			'className' => 'Cm',
			'foreignKey' => 'cms_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
?>